package $2024_3_18.Demo2;

public class Rectangle extends Graph{
    private double l;
    private double h;

    public double getL() {
        return l;
    }

    public void setL(double l) {
        this.l = l;
    }

    public double getH() {
        return h;
    }

    public void setH(double h) {
        this.h = h;
    }

    public Rectangle(double l, double h) {
        super.draw();
        this.l = l;
        this.h = h;
    }
    public double findArea1(){
        return h * l;
    }
}
